#include <stdlib.h>
#include <stdio.h>
#include <string.h>
int mycmp(const void* a, const void* b){
    return strcmp((char*)a, (char*)b);
}

int main(){
    char* buf[9];
    buf[0] = ".";
    buf[1] = "..";
    buf[2] = "ls.c";
    buf[3] = "ls";
    buf[4] = "opendir";
    buf[5] = "opendir.c";
    buf[6] = "ls作业.md";
    buf[7] = "winsize";
    buf[8] = "winsize.c";
    qsort(buf, 9, sizeof(char*), mycmp);
    for(int i = 0; i < 9; i++){
        printf("%s\n", buf[i]);
    }
    return 0;
}